{% extends "base_generic.html" %}

{% block title %}Delete Book{% endblock %}

{% block content %}
<div class="row">
    <div class="col-md-6">
        <div class="panel panel-danger">
            <div class="panel-heading">
                <h3 class="panel-title">Delete Book</h3>
            </div>
            <div class="panel-body">
                <p>Are you sure you want to delete the book <strong>{{ book.title }}</strong>?</p>
                
                <div class="alert alert-warning">
                    <strong>Warning!</strong> This action cannot be undone.
                </div>
                
                <form method="post">
                    {% csrf_token %}
                    <button type="submit" class="btn btn-danger">Delete</button>
                    <a href="{{ object.get_absolute_url }}" class="btn btn-default">Cancel</a>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %} 